/*    */ package com.qmsk.business.member.custSMS.dao;
/*    */ 
/*    */ import com.qmsk.business.member.custSMS.bean.CustMessage;
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.in.GsonHeadOneRow;
/*    */ import java.sql.SQLException;
/*    */ 
/*    */ public class CustSMSDao extends SupportDAO
/*    */ {
/*    */   public GsonHeadOneRow getListOfInitial()
/*    */     throws SQLException
/*    */   {
/* 14 */     Object[] params = { Integer.valueOf(-1) };
/* 15 */     return getOneRowOfParams("selectSqlIsToSms", "selectJsonIsToSms", 
/* 16 */       params, Integer.valueOf(0), Short.valueOf((short) 1));
/*    */   }
/*    */ 
/*    */   public int updateSms(Long id, int nState) throws SQLException {
/* 20 */     Object[] params = { Integer.valueOf(nState), id };
/* 21 */     return update("updateSqlSms", params);
/*    */   }
/*    */ 
/*    */   public int insertSms(CustMessage cm)
/*    */     throws SQLException
/*    */   {
/* 37 */     GsonHeadOneRow g = new GsonHeadOneRow();
/* 38 */     String[] dHead = { "ShopID", "targetNO", "CustName", 
/* 39 */       "Context", "GreatTime", "CustomerID", "BussBillID", "state", "msg" };
/* 40 */     Object[] dDate = { cm.getShopId(), cm.getMp(), 
/* 41 */       cm.getCustName(), cm.getSmsContext(), cm.getCrTime(), 
/* 42 */       cm.getCustId(), cm.getBussId(), cm.getState(), cm.getMsg() };
/* 43 */     g.addHeadData(dHead, dDate);
/* 44 */     return insertGsonHeadOneRow(g);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.member.custSMS.dao.CustSMSDao
 * JD-Core Version:    0.5.3
 */